package com.whcoding.designpatterns.pattern.builder.temp;

/**
 * @program: spring-boot-learning
 * @description: 普通模式
 * @author: whcoding
 * @create: 2022-09-20 17:27
 **/
public abstract class AbstractHouse {

	/**
	 * 打地基
	 */
	public abstract void buildBasic();

	/**
	 * 砌墙
	 */
	public abstract void buildWalls();

	/**
	 * 封顶
	 */
	public abstract void roofed();

	/**
	 * 建造房屋的方法
	 */
	public void build() {
		buildBasic();
		buildWalls();
		roofed();
	}
}
